package com.xm;

public class VarType_InstanceVar {
    private int a;  // 私有成员变量
    public String b = "Hello";  // 公有成员变量

    public static void main(String[] args) {
        VarType_InstanceVar varTypeInstanceVar = new VarType_InstanceVar();
        varTypeInstanceVar.a = 10;  //访问成员变量a，并设置其值为10
        System.out.println("a = " + varTypeInstanceVar.a);

        varTypeInstanceVar.b = "World"; // 访问成员变量b，并设置其值
        System.out.println("b = " + varTypeInstanceVar.b);

    }
}
